<!DOCTYPE html>
<html lang="en">

<include file="Public:header" />
<include file="Public:page_css" />
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
<include file="Public:nav" />
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-12">
        <h2>添加菜单</h2>
        <ol class="breadcrumb">
            <li>
                <a href="index.html"><i class="fa fa-home"></i> 主页</a>
            </li>
            <li>
                <a>菜单管理</a>
            </li>
            <li>
                <a>菜单列表</a>
            </li>
            <li>
                <strong>添加菜单</strong>
            </li>
        </ol>
    </div>
</div>
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <div class="ibox-tools">
                    <a class="collapse-link">
                        <i class="fa fa-chevron-up"></i>
                    </a>
                </div>
            </div>
            <div class="ibox-content">
                <form id="form-wizard" action="{:U('Menu/update')}" method="post" class="form-horizontal">
                    <input type="hidden" name="id" value="{$currentmenu['id']}">

                    <div class="form-group">
                        <label class="col-sm-2 control-label">菜单名称</label>
                        <div class="col-sm-6">
                            <input type="text" name="name" value="{$currentmenu['name']}" class="form-control">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">路由</label>
                        <div class="col-sm-6">
                            <input type="text" name="url"  value="{$currentmenu['url']}" class="form-control">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">状态</label>
                        <div class="col-sm-6">
                            <label><input type="radio" name="status" value="1">开启 </label>&nbsp;&nbsp;<label><input type="radio" name="status" value="0">关闭</label>

                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">排序</label>
                        <div class="col-sm-6">
                            <input type="text" name="sort" value="{$currentmenu['sort']}" class="form-control">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <div class="col-sm-4 col-sm-offset-2">
                            <button class="btn btn-primary" type="submit">保存信息</button>&nbsp;&nbsp;&nbsp;
                            <a class="btn btn-danger" href="{:U('Article/indextype')}">取消</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function(){
        if({$currentmenu['status']} == '1'){
            $("input[type=radio][name=status][value='1']").attr("checked",true);
        }else{
            $("input[type=radio][name=status][value='0']").attr("checked",true);
        }
    });
</script>
<include file="Public:footer" />
</body>

</html>